﻿using Sunny.UI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Toolbox.form.test.picture
{
    public partial class PictureTestTitlePanel : UITitlePanel
    {
        public PictureTestTitlePanel()
        {
            InitializeComponent();
        }

        private void uiButton1_Click(object sender, EventArgs e)
        {
            // 叠加图片按钮

            UILight light = new UILight();
            light.OnColor = Color.Red;
            light.OffColor = Color.Gray;
            light.State = UILightState.Blink;
            light.Location = new Point(this.pictureBox1.Width / 2, this.pictureBox1.Height / 2);
            pictureBox1.Controls.Add(light);
        }
    }
}
